package com.umpay.dto.merAccess.req.consume;

import java.util.List;

import javax.validation.Valid;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;

public class SubOrderInfo {
	@NotEmpty(message = "商户订单号不能为空")		
	@Pattern(message = "商户订单号格式不正确")
	private String sub_order_id;	//商户订单号
	@NotEmpty(message = "商户订单日期不能为空")		
	@Pattern(message = "商户订单日期格式不正确")
	private String sub_mer_date;	//商户订单日期
	@NotEmpty(message = "收款方用户号不能为空")		
	@Pattern(message = "收款方用户号格式不正确")
	private String in_user_id;	//收款方用户号
	private String in_user_type;	//收款方类型
	private String in_acc_type;	//收款方账户类型
	@NotEmpty(message = "金额不能为空")		
	@Pattern(message = "金额格式不正确")
	private String sub_amount;	//金额
	private String send_time;	//配送时间
	private String sender;    //配送方
	private String send_no;	//配送单号
	private String remark;	//备注信息
		
    @Valid
    private List<GoodsInfo> goods_info; //商品信息

	
	public String getSub_order_id() {
		return sub_order_id;
	}

	public void setSub_order_id(String sub_order_id) {
		this.sub_order_id = sub_order_id;
	}

	public String getSub_mer_date() {
		return sub_mer_date;
	}

	public void setSub_mer_date(String sub_mer_date) {
		this.sub_mer_date = sub_mer_date;
	}

	public String getIn_user_id() {
		return in_user_id;
	}

	public void setIn_user_id(String in_user_id) {
		this.in_user_id = in_user_id;
	}

	public String getIn_user_type() {
		return in_user_type;
	}

	public void setIn_user_type(String in_user_type) {
		this.in_user_type = in_user_type;
	}

	public String getIn_acc_type() {
		return in_acc_type;
	}

	public void setIn_acc_type(String in_acc_type) {
		this.in_acc_type = in_acc_type;
	}

	public String getSub_amount() {
		return sub_amount;
	}

	public void setSub_amount(String sub_amount) {
		this.sub_amount = sub_amount;
	}

	public String getSend_time() {
		return send_time;
	}

	public void setSend_time(String send_time) {
		this.send_time = send_time;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSend_no() {
		return send_no;
	}

	public void setSend_no(String send_no) {
		this.send_no = send_no;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<GoodsInfo> getGoods_info() {
		return goods_info;
	}

	public void setGoods_info(List<GoodsInfo> goods_info) {
		this.goods_info = goods_info;
	}

	@Override
	public String toString() {
		return "SubOrderInfo [sub_order_id=" + sub_order_id + ", sub_mer_date=" + sub_mer_date + ", in_user_id="
				+ in_user_id + ", in_user_type=" + in_user_type + ", in_acc_type=" + in_acc_type + ", sub_amount="
				+ sub_amount + ", send_time=" + send_time + ", sender=" + sender + ", send_no=" + send_no + ", remark="
				+ remark + ", goods_info=" + goods_info + "]";
	}	

}
